﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CardInfoList.aspx.cs" Inherits="ExamV5.CardInfo.CardInfoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Language" content="zh-cn" />
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<script type="text/javascript" language="javascript" src="../Image/NORightMouse.js"></script>
    <link href="../Image/STYLE.CSS" rel="stylesheet" type="text/css" />
	<script language="JavaScript" charset="gb2312" src="../Image/calendar.js"></script>
    <script type="text/javascript" language="javascript">
        function SubmitKeyClick(button) {
            if (event.keyCode == 13) {
                event.keyCode = 9;
                event.returnValue = false;
                document.all[button].click();
            }
        }

        function ShowExpInfo(strFileName) {
            var top, left;
            var strURL
            strURL = "../FrmDownLoad.aspx?FileName=" + strFileName;
            top = screen.availHeight / 2 - 150;
            left = screen.availWidth / 2 - 150;
            strPro = "height=200, border=none, width=200, top=" + top.toString() + ", left=" + left.toString() + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes, location=no,status=no";
            window.open(strURL, '下载导出数据', strPro);
        }


        function PrintInfo(strUserCode) {
            var top, left;
            var strURL
            strURL = "FrmPrintCard.aspx?UserCode=" + strUserCode;
            top = screen.availHeight / 2 - 350;
            left = screen.availWidth / 2 - 350;
            strPro = "height=600, border=none, width=720, top=" + top.toString() + ", left=" + left.toString() + ",toolbar=no,menubar=no,scrollbars=yes,resizable=no, location=no,status=no";
            window.open(strURL, '打印证书信息', strPro);
        }
		</script>
</head>
<body>
    <form id="Form1" runat="server">
     <asp:ScriptManager ID="SM" runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel ID="UPPart" runat="server">
                           <ContentTemplate>
      <table cellSpacing="0" cellPadding="0" border="0">
	    <tr>
		   <td width=37><img src="../image/BobyTip.gif" border="0" /></td>
           <td>当前位置：<a href='../FrmMain.aspx'>系统首页</a> > 证书管理 > 查询证书</td>
	    </tr>
        </table>
        <table cellSpacing="0" cellPadding="0" border="0" width="100%">
        <tr>
           <td  height=51  background="../image/BobyModNameBG.gif">
                    <table cellSpacing="0" cellPadding="0" border="0">
                        <tr>
                            <td width=5></td>
                            <td width="105"  background="../image/HeadLocalAA.gif" height="41" align="center"><a href='CardInfoList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose55.gif" border="0" style='POSITION:relative;TOP:3px'>&nbsp;<font color="#ffffff"><b>查询证书</b></font></a></td>
                            <td width="105"  background="../image/HeadTitleAA.gif" height="41" align="center"><a href='FrmAddCardList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu14.gif" border="0" style='POSITION:relative;TOP:3px'>&nbsp;<font color="#ffffff"><b>颁发证书</b></font></a></td>
                            <td width="105"  background="../image/HeadTitleBA.gif" height="41" align="center"><a href='FrmCountCardList.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Choose22.gif" border="0" style='POSITION:relative;TOP:3px'>&nbsp;<font color="#ffffff"><b>证书统计</b></font></a></td>
                            <td width="105"  background="../image/HeadTitleCA.gif" height="41" align="center"><a href='FrmSetCardInfo.aspx'  onfocus='this.blur();'><img src="../image/MenuICO/Menu21.gif" border="0" style='POSITION:relative;TOP:3px'>&nbsp;<font color="#ffffff"><b>证书设置</b></font></a></td>
                        </tr>
                   </table>
            </td>
         </tr>
         <tr>
            <td  height=33  background="../image/QueryBG.gif" align="right">
                        <table cellSpacing="0" cellPadding="0" border="0">
                            <tr>
                                <td><asp:dropdownlist id="DDLDate" runat="server" style="height:26px;">
                            <asp:ListItem Value="a.CardStartDate">颁发时间</asp:ListItem>
                            <asp:ListItem Value="a.CardEndDate">失效时间</asp:ListItem>
                            <asp:ListItem Value="a.ExamDate">考试时间</asp:ListItem>
							</asp:dropdownlist></td>
                            <td><asp:TextBox id="txtStartDate" runat="server" Width="70px" Height="23" CssClass="text" onclick="calendar(this)"></asp:TextBox>—<asp:TextBox id="txtEndDate" runat="server" Height="23" Width="70px" CssClass="text" onclick="calendar(this)"></asp:TextBox></td>
                            <td><asp:DropDownList id="DDLDept" runat="server" style="height:26px;" AutoPostBack="True"  Width="150"
                                            onselectedindexchanged="DDLDept_SelectedIndexChanged"></asp:DropDownList></td>
                             <td><asp:dropdownlist id="DDLQuery" runat="server" style="height:26px;">
							<asp:ListItem Value="b.UserName">考生姓名</asp:ListItem>
                            <asp:ListItem Value="a.UserCode">准考证号</asp:ListItem>
                            <asp:ListItem Value="b.UserSFZH">身份证号</asp:ListItem>
                            <asp:ListItem Value="a.CardNumber">证书编号</asp:ListItem>
							</asp:dropdownlist></td>
                            <td><asp:TextBox ID="txtQuery" runat="server" CssClass="text"  Height="23" Width="150"></asp:TextBox></td>
                            <td><asp:Button ID="butQuery" runat="server"  Text="查  询"  style='POSITION:relative;TOP:-2px' CssClass="but2G" onclick="butQuery_Click"/>&nbsp;</td>
                             <td><asp:Button ID="butExp" runat="server"  Text="导  出"   style='POSITION:relative;TOP:-2px' CssClass="but2B" onclick="butExp_Click"/></td>
                              <td>&nbsp;&nbsp;<asp:Label id="labTip"  runat="server"></asp:Label></td> 
                                  
                                   </tr>
                        </table>     
            </td>
         </tr>
         <tr>
                <td>
                                    <!--数据列表区-->
                                    <asp:GridView ID="DataGridInfo" runat="server" AllowPaging="True"  
                                            onpageindexchanging="DataGridInfo_PageIndexChanging" 
                                            AutoGenerateColumns="False" CellPadding="10" BorderWidth="1px" Width="100%" 
                                            CssClass="tableStyle" BackColor="White" PageSize="10" 
                                            AllowSorting="True" onsorting="DataGridInfo_Sorting"  
                                            onrowdatabound="DataGridInfo_RowDataBound" 
                                            DataKeyNames="UserCode,UPID,ID" >
							            <HeaderStyle Font-Bold="True" HorizontalAlign="Center" CssClass="tabth_bg" ForeColor="#143F61" ></HeaderStyle>
							            <FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
                                            <Columns>
                                                <asp:TemplateField HeaderText="选中">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="CheckBoxSelect" runat="server" />
                                                    </ItemTemplate>
                                                    <HeaderStyle Width="30px" />
                                                </asp:TemplateField>
                                                 <asp:BoundField DataField="UserCode" HeaderText="准考证号"  SortExpression="UserCode" >
                                                <HeaderStyle Width="70px" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="UserName" HeaderText="考生姓名"  SortExpression="UserName" >
                                                <HeaderStyle Width="70px" />
                                                </asp:BoundField> 
                                                <asp:BoundField DataField="UserSFZH" HeaderText="身份证号" >
                                                <HeaderStyle Width="110px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DeptName" HeaderText="所属单位" >
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ExamDate" HeaderText="考试时间"  SortExpression="ExamDate" >
                                                <HeaderStyle Width="60px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                 <asp:BoundField DataField="CardNumber" HeaderText="证书编号"  SortExpression="CardNumber" >
                                                <HeaderStyle Width="90px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="CardStartDate" HeaderText="颁发日期"  SortExpression="CardStartDate" >
                                                <HeaderStyle Width="65px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="CardEndDate" HeaderText="失效日期"  SortExpression="CardEndDate" >
                                                <HeaderStyle Width="65px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                            </Columns>
                                        <PagerStyle HorizontalAlign="Right" />
           
                                     </asp:GridView>
                                    </td>
                                </tr>
                                
                                <tr height="25">
                                    <td><br />
                                    <!--分页区-->
                                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
										<tr>
											<td align="left">&nbsp;<asp:linkbutton id="LBSelect" runat="server" 
                                                    onclick="LBSelect_Click">选中当页</asp:linkbutton>&nbsp;<asp:linkbutton 
                                                    id="LBPrint" runat="server" onclick="LBPrint_Click">打印所选证书</asp:linkbutton>&nbsp;</td>
											<td align="right"><asp:label id="labRescordCount" runat="server">总共&nbsp;<font color='#0000C0'><B>0</B></font>&nbsp;条记录&nbsp;<font color='#0000C0'><B>1/1</B></font>&nbsp;页&nbsp;&nbsp;</asp:label>&nbsp;&nbsp;
												<asp:LinkButton id="LBFirstPage" runat="server" onclick="LBFirstPage_Click">第一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBPrevPage" runat="server" onclick="LBPrevPage_Click">上一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBNextPage" runat="server" onclick="LBNextPage_Click">下一页</asp:LinkButton>&nbsp;
												<asp:LinkButton id="LBLastPage" runat="server" onclick="LBLastPage_Click">最后页</asp:LinkButton>&nbsp;&nbsp;</td>
										</tr>
									    </table>
                    </td>
                </tr>

        </table>
             </ContentTemplate>
       </asp:UpdatePanel>
    </form>
   
</body>
</html>
